//将根目录下的package.json复制到dist目录下
const fs = require('fs');
const path = require('path');
const packageJson = require('../package.json');
const distPath = path.resolve(__dirname, '../dist');
//将package.json复制到dist目录下
fs.copyFileSync(path.resolve(__dirname, '../package.json'), path.resolve(distPath, 'package.json'));